function CheckForReload() {
    var reloadValue = document.getElementById("reloadValue");
    if (reloadValue.value.length == 0)
    {
        reloadValue.value="loaded";
        location.show();
    }
    else
    {
        reloadValue.value="";
        location.reload();
    }
}